﻿@model Entidad.Cliente

@{
    ViewBag.Title = "Crear Nuevo Cliente";
}

<h2>@ViewBag.Title</h2>

<div class="span12">
    <!-- BEGIN BASIC CHART PORTLET-->
    <div class="widget black">
        <div class="widget-title">
            <h4><i class="icon-plus-sign"></i> Nuevo Cliente</h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
                <a href="javascript:;" class="icon-remove"></a>
            </span>
        </div>
        <div class="widget-body">

            @using (Html.BeginForm())
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)

                                
                //FORMULARIO                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Nombre, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.Nombre, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Nombre)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Apellido, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.Apellido, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Apellido)
                        </div>
                    </div>
                </div>
                
                @*---------------------------------------------------------------------------*@
                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Documento, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.Documento, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Documento)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5"></div>
                </div>
                    
                @*---------------------------------------------------------------------------*@

                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Calle, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.Calle, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Calle)
                        </div>
                    </div>

                    <div class="form-group span2">
                        @Html.LabelFor(model => model.Numeracion, new { @class = "control-label span8" })
                        <div class="span4">
                            @Html.TextBoxFor(model => model.Numeracion, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Numeracion)
                        </div>
                    </div>
                    
                    <div class="form-group span2">
                        @Html.LabelFor(model => model.Piso, new { @class = "control-label span8" })
                        <div class="span4">
                            @Html.TextBoxFor(model => model.Piso, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Piso)
                        </div>
                    </div>

                    <div class="form-group span2">
                        @Html.LabelFor(model => model.Departamento, new { @class = "control-label span8" })
                        <div class="span4">
                            @Html.TextBoxFor(model => model.Departamento, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Departamento)
                        </div>
                    </div>
                </div>
                
                @*---------------------------------------------------------------------------*@
                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Barrio, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.Barrio, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Barrio)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5"></div>
                </div>
                
                @*---------------------------------------------------------------------------*@
                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.TelefonoFijo, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.TelefonoFijo, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.TelefonoFijo)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5">
                        @Html.LabelFor(model => model.TelefonoCelular, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.TelefonoCelular, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.TelefonoCelular)
                        </div>
                    </div>
                </div>
                
                @*---------------------------------------------------------------------------*@
                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Email, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.Email)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5"></div>
                </div>
                
                @*---------------------------------------------------------------------------*@
                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Ciudad, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.DropDownListFor(m => m.Ciudad.Id, (SelectList)ViewData["ciudades"])
                            @Html.ValidationMessageFor(model => model.Ciudad.Id)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5">
                        @Html.LabelFor(model => model.Provincia, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.DropDownListFor(m => m.Provincia.Id, (SelectList)ViewData["provincias"])
                            @Html.ValidationMessageFor(model => model.Provincia.Id)
                        </div>
                    </div>
                </div>
                
                @*---------------------------------------------------------------------------*@
                
                <div class="span12">
                    <div class="form-group span5">
                        @Html.LabelFor(model => model.TipoIva, new { @class = "control-label span4" })
                        <div class="span8">
                            @Html.DropDownListFor(m => m.TipoIva.Id, (SelectList)ViewData["ivas"])
                            @Html.ValidationMessageFor(model => model.TipoIva.Id)
                        </div>
                    </div>

                    <div class="span2"></div>

                    <div class="form-group span5"></div>
                </div>

                
                <div class="space20"></div>
                <div class="form-group">
                    <div>
                        <input type="submit" value="Aceptar" class="btn btn-success" />
                        @Html.ActionLink("Cancelar", "Index", new { }, new { @class = "btn btn-danger" })
                    </div>
                </div>

            }
        </div>
    </div>
    <!-- END BASIC CHART PORTLET-->
</div>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
